/* 公告栏样式 */
.announcement {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    padding: 15px 50px 15px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.announcement.hidden {
    display: none;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* 动画效果 */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement {
        padding: 12px 45px 12px 15px;
    }

    .close-btn {
        right: 10px;
    }
}